import { memo } from "react";
export default memo(function List({ items }) {
  console.log("判断子组件是否要计算");
  return (
    <div>
      <ul>
        {items.map((todo) => (
          <li key={todo.id}>{todo.completed ? <s>{todo.text}</s> : todo.text}</li>
        ))}
      </ul>
    </div>
  );
});
